package com.kkb.mapper;

import com.kkb.pojo.DrugPatient;
import com.kkb.pojo.DrugPatientExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DrugPatientMapper {
    long countByExample(DrugPatientExample example);

    int deleteByExample(DrugPatientExample example);

    int deleteByPrimaryKey(Integer dp_id);

    int insert(DrugPatient record);

    int insertSelective(DrugPatient record);

    List<DrugPatient> selectByExample(DrugPatientExample example);

    DrugPatient selectByPrimaryKey(Integer dp_id);

    int updateByExampleSelective(@Param("record") DrugPatient record, @Param("example") DrugPatientExample example);

    int updateByExample(@Param("record") DrugPatient record, @Param("example") DrugPatientExample example);

    int updateByPrimaryKeySelective(DrugPatient record);

    int updateByPrimaryKey(DrugPatient record);
}